import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import BaiduMap from 'vue-baidu-map' //vue-baidu-map

import './permission' // permission
Vue.use(plugins)

import uView from 'uview-ui'
Vue.use(uView)
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'ByhRV12RgHylG504w8sqcBzSEdm5EXN0'
})
import htmlToPdf from "./components/pdf/index.js"
Vue.use(htmlToPdf)

// 引入过滤器
import filters from './utils/dataFilter'
// 遍历过滤器对象，自动注册所有过滤器
Object.entries(filters).forEach(([filterName, filterFunction]) => {
  Vue.filter(filterName, filterFunction)
})

Vue.config.productionTip = false
Vue.prototype.$store = store

App.mpType = 'app'

const app = new Vue({
  ...App,
})

app.$mount()
